<extend name="Public/base"/>

<block name="style" >
    <style>
        table{
            font-size: 12px;
        }
        .active_btn{
            background-color: #3EAFE1 !important;
            color: #fff !important;
        }
    </style>
</block>

<block name="body">
    <div class="row">
        <div class="col-md-12">
            <div class="block-web">
                <form action="{:U('index_list')}" method="post" onsubmit="return false" id="SearchFrom">
                    <div class="header">
                        <h3 class="content-header">存款记录</h3>
                    </div>

                    <div class="block-web" style="margin: 0;padding:10px 20px 0px 0px;">
                        <div class="porlets-content">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="search_pannl_div">
                                        <table class="search_table">
                                            <tbody>
                                            <tr>
                                                <td class="single-col" >
                                                    <button type="button" style="margin-left: 10px;" class="btn btn-default active_btn"  onclick="window.location.reload()"> 全部</button>
                                                    <input type="hidden" name="is_checked" value="0">
                                                    <button type="button"  class="btn btn-default" id="search_btn" formtarget="SearchFrom" onclick="active_btn(this)"> 待审核({$count_checked})</button>
                                                </td>
                                                <td class="single-col" style="text-align: right;">
                                                    用户登录账号：<input style="width:305px;" type="text" id="user_name" name="user_name" placeholder="输入用户登录帐号查找" value="">
                                                    <button type="button" class="btn btn-success" formtarget="SearchFrom" id="searchBtn" onclick="goSearch('#searchBtn','load_tb_div')"><i class="fa fa-search"></i> 搜索</button>
                                                    <button type="button" class="btn btn-default" onclick="window.location.reload()"> 查看所有</button>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="load_tb_div">
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
    </div>


</block>

<block name="script">
    <include file="Public:artdialog" />

    <!--  弹窗插件引用 update by nirunfa 2015-12-20  -->
    <script src="/Public/static/layer/layer.js"></script>

    <script type="text/javascript">

        $(function(){
            load();
        });
        function load(){
            var init_url="{:U('index_list')}";
            var url=  init_url;
            var load_DIV=  'load_tb_div';
            _load_html_byurl(url,load_DIV)
        }


        function del_one(url) {
            art.dialog.confirm('您确认要删除此条数据？', function () {
                $.post(url, function (data) {
                    art.dialog.tips(data.info, 2);
                    _load_html_byurl("{:U('index_list')}","load_tb_div");
                });
            }, function () {
            });
        }

        function active_btn(obj){
            goSearch('#search_btn','load_tb_div');
            $(obj).addClass("active_btn").siblings().removeClass("active_btn");
        }

    </script>
</block>